module.exports = {
  sum: (...args) => {
    return args.reduce((prev, curr) => {
      return prev + curr;
    });
  },
  mul: (...args) => {
    return args.reduce((prev, curr) => {
      return prev * curr;
    });
  },
  min: (a, b) => {
    if (b > a) return b - a;
    if (a > b) return a - b;
    if (a === b) return 0;
  }
};
